Dear all,
I am trying to run code which looks like
which continues with me reshaping them and merging them into a main dataset.
The datasets are for fdi flows and fdi stocks - both from the world bank so their contents look identical (beyond the fact that the data is different for flows/stocks).
This code works on my Mac (after replacing file directory to be Mac-friendly of course) but on my PC it gives the following,
Is there a way to fix this without getting rid of the loop?
Thanks!
P.S. I made a post somewhat like this yesterday - that was me making a typing error and then misremembering and thinking that I was coming across this issue.
I am trying to run code which looks like
Code:
foreach x in us_fdiflowsstock us_fdiflowsstock { import delimited "C:\OneDrive\Final \`x'.csv", clear
The datasets are for fdi flows and fdi stocks - both from the world bank so their contents look identical (beyond the fact that the data is different for flows/stocks).
This code works on my Mac (after replacing file directory to be Mac-friendly of course) but on my PC it gives the following,
Code:
file C:\OneDrive\Final.csv not found
Thanks!
P.S. I made a post somewhat like this yesterday - that was me making a typing error and then misremembering and thinking that I was coming across this issue.
Comment